class Animal {
    int age;
    String name;

     public void wangwang() {
         System.out.println("叫");
    }

    public Animal(int age,String name) {
         this.age = age;
         this.name = name;
    }

}
class Cat extends Animal{

    public Cat(int age,String name){
      super(age,name);
    }

    @Override
    public void wangwang() {
        System.out.println("喵喵");
    }
}

public class Demo {
    public static void main(String[] args) {
        Cat cat = new Cat(11,"11");
        cat.wangwang();
    }
}
